<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>v-bind v-model用法</title>
    <script src="../hanshunping/js/vue.js"></script>
</head>
<body>

<div id="app">
    <!--v-bind 绑定标签的属性值-->
    <a v-bind:href="url">点击一下</a>
    <a :href="url">点击一下</a>
    <!--v-model 表单项标签绑定模型数据-->
    <input v-model="url">
</div>
<script>
    new Vue({
        el:"#app",
        data() {
            return {
                username:"",
                url:"https://www.baidu.com" //和上面进行绑定
            }
        }
    })
</script>
</body>
</html>